﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Foundation
{
    /// <summary>
    /// 报表的特性描述。
    /// </summary>
    public class ReportAttribute: Attribute
    {

        /// <summary>
        /// 初始化 Marmat.Foundation.ReportAttribute 类的新实例。
        /// </summary>
        /// <param name="name"></param>
        public ReportAttribute(string name)
        {
            this.Name = name;
        }

        /// <summary>
        /// 初始化 Marmat.Foundation.ReportAttribute 类的新实例。
        /// </summary>
        /// <param name="name"></param>
        /// <param name="text"></param>
        public ReportAttribute(string name, string text)
        {
            this.Name = name;
            this.Text = text;
        }

        /// <summary>
        /// 报表的名称
        /// </summary>
        public string Name { get; }

        /// <summary>
        /// 报表的标题
        /// </summary>
        public string Text { get; }
    }
}
